SM Portal System.TimeoutException: [HttpRequestTimedOutWithoutDetail] over WAN link

Hello guys.

We have an installation of SCSM 2012 SP1 running well, however we have two remote sites with low speed (<2mbps) WAN links.

Over those two sites, the Self service portal opens but the Silverlight content does not load. It shows the [Arg_TargetInvocationException] and when I look into the trace file on the client PC it shows this:

Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.20125.00&File=mscorlib.dll&Key=Arg_TargetInvocationException ---> System.TimeoutException: [HttpRequestTimedOutWithoutDetail]

Is there a setting I can tweak to increase the timeout for the portal's HTTP requests?

Is this really a timeout issue? When I ping the portal server, ping is 50ms on average which, despite the lame WAN link, is pretty decent.

Thank you.

Tomas

EDIT: I forgot to say that the portal works fine over the LAN. The problem arises only over WAN links.
  • Edited by er_tomas Wednesday, June 19, 2013 2:38 PM Clarification
June 19th, 2013 2:06pm

Hi

Look in the SilverLight log for more answers. Log can be found in the following location: C:\Users\%username%\AppData\LocalLow\Microsoft\Silverlight\is......\SMPortalTrace.log

There you can hopefully find more info about the error.

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2013 3:57pm

First of all the bad news - SCSM Portal aren't optimized on WAN. The initial load of the first page generate from 7 to 10 Mb (yes, Megabytes). So using it on WAN can be really painful.

You can try to increase timeout to increase timeouts inside of Silverlight box. To do this just find the web.config inside of ServiceHost folder and add timeout attributes to <binding Name="DefaultHttpBinding"> and <binding Name="DefaultHttpsBinding"> like this (format is HOURS:MINUTES:SECOND):

<binding Name="DefaultHttpBinding" 
  closeTimeout="00:20:00"
  openTimeout="00:20:00" 
  receiveTimeout="00:20:00"
  sendTimeout="00:20:00"> 
<!-- ....... -->
<binding Name="DefaultHttpsBinding" 
  closeTimeout="00:20:00"
  openTimeout="00:20:00" 
  receiveTimeout="00:20:00"
  sendTimeout="00:20:00">
<!-- ....... -->

more here http://msdn.microsoft.com/en-us/library/ms731377.aspx

June 19th, 2013 4:15pm

The full error stack is this:

Error,2013-06-19 18:19:21.1717765,System.Reflection.TargetInvocationException: [Arg_TargetInvocationException]
Argumentos: 
Las cadenas de recursos de depuracin no estn disponibles. La clave y los argumentos suelen proporcionar suficiente informacin para diagnosticar el problema. Vea http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.20125.00&File=mscorlib.dll&Key=Arg_TargetInvocationException ---> System.TimeoutException: [HttpRequestTimedOutWithoutDetail]
Argumentos: https://sds-sdsdd.xxxx.com:444/ServiceHost/Services/DataAccessService.svc
Las cadenas de recursos de depuracin no estn disponibles. La clave y los argumentos suelen proporcionar suficiente informacin para diagnosticar el problema. Vea http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50401.0&File=System.ServiceModel.dll&Key=HttpRequestTimedOutWithoutDetail ---> System.Net.WebException ---> System.Net.WebException
   en System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   en System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
   en System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
   --- Fin del seguimiento de la pila de excepciones internas ---
   en System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   en System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   en System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
   --- Fin del seguimiento de la pila de excepciones internas ---
   en Microsoft.EnterpriseManagement.ServiceManager.Portal.ServiceCatalogSilverlightModule.Models.DataProvider.<>c__DisplayClass1.<FetchAllServiceOfferings>b__0(Object sender, AsyncDataCommandCompletedEventArgs`1 e)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.<>c__DisplayClass2.<CompleteCommand>b__0(Object )
   --- Fin del seguimiento de la pila de excepciones internas ---
   en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   en System.Delegate.DynamicInvokeImpl(Object[] args)
   en System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, Boolean useFastPath, Delegate d, Object[] args)
   en System.Windows.Threading.DispatcherSynchronizationContext.Send(SendOrPostCallback d, Object state)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.CompleteCommand(Object sender, AsyncDataCommandCompletedEventArgs`1 e)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.OnCommandCompleted(Object sender, Exception exception)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.DataGatewayBase.CompleteAsyncDataCommandWithError(AsyncDataCommand command, Exception exception)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.ProxyExecuteCompletedHandler(Object sender, ExecuteCompletedEventArgs e)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.<>c__DisplayClass4.<GetClientProxy>b__3(Object sender, ExecuteCompletedEventArgs args)
   en Microsoft.EnterpriseManagement.Presentation.DataAccess.Proxy.ServiceReference.DataAccessServiceClient.OnExecuteCompleted(Object state)
And it definitely shows a timeout exception.


  • Edited by er_tomas Wednesday, June 19, 2013 8:05 PM domain name
Free Windows Admin Tool Kit Click here and download it now
June 19th, 2013 6:21pm

Anton, I tried what you said, however it is still timing out.

A few minutes ago, during lunch time the portal did open over the WAN link, so it does seem to be related to latency or channel saturation, however, it won't open again, so the problem is not the initial load but also consecutive ones.

The silverlight object does not seem to cache on the local PC.

EDIT: I set the timeout to 20 minutes as you suggested but the Silverlight box times out after less than a minute. Am I missing something?
  • Edited by er_tomas Wednesday, June 19, 2013 8:09 PM Edit
June 19th, 2013 6:23pm

this is strange. today I've found same problem in some Brazil blog http://www.mcpbrasil.com/blogs/hpanissa/2013/01/29/default.aspx and  it was solved by setting timeout. can you please check it twice and may be restart iis and clear cache on the client just for case.
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2013 9:52pm

Hi All,

I have Faced the same issue.

It is solved by changing the time out in 6 ServiceReferences.ClientConfig files as per suggested Article.

bindings>
      <customBinding>
        <Binding name="DefaultHttpBinding">
          <binaryMessageEncoding />
          <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
        </ Binding>        
<binding name = "DefaultHttpsBinding"                 ReceiveTimeOut = "00:10:00"                 SendTimeOut = "00:10:00">  

        <binaryMessageEncoding />           <httpsTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />

        </ binding>       </ customBinding>     </ bindings>

http://www.mcpbrasil.com/blogs/hpanissa/2013/01/29/default.aspx

July 26th, 2013 12:23pm

Steps are mentioned below.

1. Go to location this location and see 6 XAP files

Free Windows Admin Tool Kit Click here and download it now
July 26th, 2013 12:29pm

Step2. Create New folder on desktop as Zap files and create 2 Subfolder default and modified.

Paste default 6 XAP files in default folder and Modify folder

July 26th, 2013 12:31pm

in Modify folder change the extension of all XAP files to .zip

Free Windows Admin Tool Kit Click here and download it now
July 26th, 2013 12:32pm

Double Click Zip file, then you can see ServiceReferences.ClientConfig, open it with notepad

July 26th, 2013 12:33pm

See Default file as mentioned below

Free Windows Admin Tool Kit Click here and download it now
July 26th, 2013 12:34pm

Replace it with

<binding name = "DefaultHttpsBinding"                 ReceiveTimeOut = "00:10:00"                 SendTimeOut = "00:10:00">

July 26th, 2013 12:34pm

Do this in 6 files available in All XAP files !!
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2013 12:35pm

Stop IIS and Replace the 6 Changed Files in Original Location

C:\inetpub\wwwroot\System Center Service Manager Portal\ContentHost\Clientbin

and Start the IIS

Reopen SMportal, it works fine.

July 26th, 2013 12:38pm

I have this exact same problem but the two fixes in this article didn't fix my situation. I started a new thread at:

https://social.technet.microsoft.com/Forums/office/en-US/0b65d45d-29fd-46b2-baa8-a40aeeb4413b/sm-portal-systemtimeoutexception-httprequesttimedoutwithoutdetail-dataaccessservicesvc?forum=systemcenterservicemanager

July 13th, 2015 10:23am

I changed the timeout value to 20 minutes, up from 10, but it didn't matter. It may be worth noting that the error at the bottom of the portal page appears after only 2-3 minutes.
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 12:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics